package com.xxxx.manager.service.impl;

import com.xxxx.common.result.BaseResult;
import com.xxxx.manager.mapper.GoodsImagesMapper;
import com.xxxx.manager.pojo.Goods;
import com.xxxx.manager.pojo.GoodsImages;
import com.xxxx.manager.service.GoodsImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsImagesServiceimpl implements GoodsImagesService {

    @Autowired
    private GoodsImagesMapper goodsImagesMapper;

    //商品相册保存
    @Override
    public BaseResult saveGoodsImages(GoodsImages goodsImages) {
       int result =  goodsImagesMapper.insertSelective(goodsImages);

       return result>0 ? BaseResult.success():BaseResult.error();
    }
}
